package com.newegg.nlp.arangodb.model;

import com.arangodb.springframework.annotation.Edge;
import com.arangodb.springframework.annotation.From;
import com.arangodb.springframework.annotation.To;
import com.newegg.nlp.arangodb.BaseModel;

@Edge
public class ItemKeyword extends BaseModel{
	
	@From
	Item item;
	
	@To
	Keyword keyword;
	
	public ItemKeyword(Item item, Keyword keyword) {
		super();
		this.setId(item.getId() + "_" + keyword.getId());
		this.item = item;
		this.keyword = keyword;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public Keyword getKeyword() {
		return keyword;
	}

	public void setKeyword(Keyword keyword) {
		this.keyword = keyword;
	}
}
